﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApi.Models
{
    /// <summary>
    /// 一个事故信息表 add by cfl  2022-04-14
    /// </summary>
    [SugarTable("Accident")]
    public class AccidentModel
    {
        /// <summary>
        /// 类别编号
        /// </summary>
        [SugarColumn(ColumnName = "accidentID", IsPrimaryKey = true)]
        public int accidentID { get; set; }
        /// <summary>
        /// 分类    
        /// </summary>		
        [SugarColumn(ColumnName = "accident")]
        public string accident { get; set; }
        /// <summary>
        /// 新闻标题    
        /// </summary>		
        [SugarColumn(ColumnName = "accident_News_Title")]
        public string accident_News_Title { get; set; }
        /// <summary>
        /// 新闻来源    
        /// </summary>		
        [SugarColumn(ColumnName = "accident_News_NewsSource")]
        public string accident_News_NewsSource { get; set; }
        /// <summary>
        /// 新闻发布日期    
        /// </summary>		
        [SugarColumn(ColumnName = "accident_News_PublishDate")]
        public DateTime? accident_News_PublishDate { get; set; }
        /// <summary>
        /// 新闻内容    
        /// </summary>		
        [SugarColumn(ColumnName = "accident_News_NewsSkill")]
        public string accident_News_NewsSkill { get; set; }
        /// <summary>
        /// 点赞数    
        /// </summary>		
        [SugarColumn(ColumnName = "accident_News_Praise")]
        public int accident_News_Praise { get; set; }
        /// <summary>
        /// 图片    
        /// </summary>		
        [SugarColumn(ColumnName = "accident_News_Picture")]
        public string accident_News_Picture { get; set; }
        /// <summary>
        /// 外键约束 CategoryNews categoryID    
        /// </summary>		
        [SugarColumn(ColumnName = "accidentKey")]
        public int accidentKey { get; set; }

    }
}
